<!DOCTYPE html>
<html>
<head>
    <title>Polling Example</title>
    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
</head>
<body>
<h1>Polling Example</h1>
<div id="result"></div>

<script>
    function poll() {
        $.get('/polling/poll', function(data, status) {
            if (status === 'success') {
                $('#result').text(data);
            }
        });
    }

    setInterval(poll, 5000);
</script>
</body>
</html>
